/*
 * Copyright (c) 2024. Shanghai HEADING information Engineering Co., Ltd. All rights reserved.
 */
package com.lovely602.design.study.basic;

/**
 * @author lizhixing
 */
public class MathTest {

  public static void main(String[] args) {
    int sqrt = 3;
    System.out.println(sqrt + " 的平方根：" + Math.sqrt(sqrt));
    int abs = -3;
    System.out.println(abs + " 的绝对值：" + Math.abs(abs));
    int a = -3;
    int b = 3;
    System.out.println(a + "、" + b + " 的最小值：" + Math.min(a, b));
    System.out.println(a + "、" + b + " 的最大值：" + Math.max(a, b));
    double random = Math.random();
    System.out.println("随机数：" + random);
  }

}
